package com.itrus.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileUtils
{
  public static boolean exists(String paramString)
  {
    return new File(paramString).exists();
  }

  public static byte[] readBytesFromFile(String paramString)
    throws IOException
  {
    FileInputStream localFileInputStream = new FileInputStream(paramString);
    byte[] arrayOfByte = new byte[localFileInputStream.available()];
    localFileInputStream.read(arrayOfByte);
    localFileInputStream.close();
    return arrayOfByte;
  }

  public static void saveBytesToFile(byte[] paramArrayOfByte, String paramString)
    throws IOException
  {
    FileOutputStream localFileOutputStream = new FileOutputStream(paramString);
    localFileOutputStream.write(paramArrayOfByte);
    localFileOutputStream.close();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.util.FileUtils
 * JD-Core Version:    0.6.2
 */